/* RESET STYLES */
body div [data-id='logo-container'],
body div [data-id='form-container'] {
  margin: 0;
  padding: 0;
}

form .form-group.field.field-null div {
  margin: 0;
}

/* Page Styles */
[data-id='page-container'] {
  align-content: center;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
}

/* Checkbox Styles  */
form .field-array > div > div > label {
  display: none;
}

/* Card Styles */
[data-id='card'] {
  --primatives-white: #fff;
  --primatives-black: #000;
  --secondary-900: #263238;
  --secondary-50: #c7cacb;
  --secondary-40: #dcdedf;

  border-radius: 0.5rem;
  border: 1px solid var(--secondary-40, #dcdedf);
  background: var(--primatives-white, #fff);
  width: 23rem !important;
  padding: 1.5rem;
  background: var(--primatives-white, #fff);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.12),
    0px 12px 24px rgba(0, 0, 0, 0.12), 0px 1px 32px rgba(0, 0, 0, 0.12) !important;
}

/* Text Input Styles */
form .form-group.field.field-string input {
  border-radius: 0.25rem;
  border: 1px solid var(--secondary-50, #c7cacb);
  background: var(--primatives-white, #fff);
}

form .form-group.field.field-string input:focus {
  /* should be 2px width BUT it causes layout shifting */
  border: 1px solid var(--secondary-900, #263238) !important;
}

/* Button Styles  */
form button[role='button'] {
  /*   color: var(--primatives-white, #FFF); */
  text-align: center;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.04688rem;
  text-transform: uppercase;
}

/* disabled button override */
form button[role='button'].is-disabled {
  background: var(--secondary-30, #e5e6e7) !important;
  color: var(--secondary-50, #c7cacb) !important;
  opacity: 1 !important;
  border: none !important;
}

/*
  Text Styles
*/

/* general font overrides */
[data-id='card'],
[data-id='card'] [data-id='html-box'] {
  font-family: Inter, Arial, sans-serif !important;
  color: var(--primatives-black, #000);
}

/* card heading */
[data-id='form-container'] h2 {
  font-family: Inter;
  font-size: 1.45625rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

/* general body text inside card */
[data-id='form-container'] p {
  font-family: Inter;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.125rem; /* 128.571% */
}

/* text input label font styles */
form .form-group.field.field-string label {
  color: var(--secondary-900, #263238);
  font-family: Inter, Arial, sans-serif !important;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.025rem;
  margin-top: 0.5rem;
}

/* Text Inputs */
form .form-group.field.field-string input {
  color: var(--secondary-900, #263238);
  font-family: Inter;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5rem;
  letter-spacing: 0.00938rem;
}

/* checkbox labels */
form .field-array > div > div > div > .field-container label {
  color: var(--secondary-900, #263238);
  font-family: Inter, Arial, sans-serif !important;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.25rem; /* 166.667% */
  letter-spacing: -0.00938rem;
}

/* Spacing */
[data-id='logo-container'] {
  margin-bottom: 1rem;
}

form .form-group.field.field-string label {
  margin-top: 0.5rem;
}

/* Checkboxes */
form .field-array > div > div > div > .field-container label {
  margin-top: 1em;
  margin-bottom: -0.75rem;
}

[data-id='form-container'] hr {
  margin: 1em 0 !important;
}

[data-id='form-container'] p {
  margin-top: 0.5rem;
}

/*
  there is no perfect way to account for single vs. double button forms
  all buttons must have a margin top to account for this
*/
form button[role='button'] {
  margin-top: 1rem;
}

/* HCM - MFA Skip Option form */
form .form-group.field.field-null p + p {
  background: var(--secondary-10, #f4f5f5);
  padding: 0.5rem;
}

/* HCM - MFA Skip Option form */
form .form-group.field.field-null p {
  padding: 0.5rem;
}

/* HCM - Sign On w/Forgot Link */
div.form-group.field.field-array label {
  margin-bottom: 0.5rem;
}
[data-id='html-box'] p {
  color: var(--primatives-black);
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.125rem;
}
[data-id='html-box'] p a:hover {
  text-decoration: none;
}
div.form-group div[data-id='flow-link-container'] a {
  margin-top: 8px;
  font-size: 0.875rem;
  font-style: normal;
}
div.form-group div[data-id='flow-link-container'] a:hover {
  text-decoration: none;
}

/* HCM - RMIS Sign-In */
/* Continue with Google button */
.reactSingularKey_CC_main_generic.styles_CC_main_generic__38Quz
  div.css-i32tiq.e146bxl90
  > div.css-kf9qml.e146bxl90
  form
  > div
  > div:nth-child(8)
  .css-1lexbp8 {
  background-image: url('https://truckstop-mdc-components.web.app/images/logo__google.png');
  background-repeat: no-repeat;
  background-size: 32px 24px;
  background-position: 8px;
  text-align: left !important;
  padding-left: 40px !important;
}

/* HCM - RMIS Sign-In*/
/* OR text */
#widgetContainer
  .reactSingularKey_CC_main_generic.styles_CC_main_generic__38Quz
  .css-i32tiq.e146bxl90
  > .css-kf9qml.e146bxl90
  form
  > div
  > div:nth-child(7)
  p {
  margin-top: 1em;
}

/* specific fix for button on Let's verify your ID step */
#widgetContainer
  > div
  > div
  > div.reactSingularKey_CC_main_generic.styles_CC_main_generic__38Quz
  > div
  > div
  > div
  > div
  > div.css-i32tiq.e146bxl90
  > div.css-kf9qml.e146bxl90
  > div
  > div
  > form
  > div
  > div:nth-child(3)
  > div
  > div
  > div
  > div
  > div
  > button {
  background: var(--primary-900, #b60207);
}

/* HCM - RMIS Create Profile Screen */
/* Register with Google button */
#widgetContainer
  > div
  > div
  > div.reactSingularKey_CC_main_generic.styles_CC_main_generic__38Quz
  > div
  > div
  > div
  > div
  > div.css-i32tiq.e146bxl90
  > div.css-kf9qml.e146bxl90
  > div
  > div
  > form
  > div
  > div:nth-child(10)
  > div
  > div
  > div
  > div
  > div
  > button.css-1lexbp8 {
  background-image: url('https://truckstop-mdc-components.web.app/images/logo__google.png');
  background-repeat: no-repeat;
  background-size: 32px 24px;
  background-position: 8px;
  text-align: left !important;
  padding-left: 40px !important;
}

/* HCM - RMIS Create Profile Screen */
/* Fix Divider color and margin */
#widgetContainer
  > div
  > div
  > div.reactSingularKey_CC_main_generic.styles_CC_main_generic__38Quz
  > div
  > div
  > div
  > div
  > div.css-i32tiq.e146bxl90
  > div.css-kf9qml.e146bxl90
  > div
  > div
  > form
  div.is-horizontal[role='separator'] {
  background-color: var(--secondary-30, #e5e6e7);
  margin-top: 1rem;
}

/* Fix for Submit button on Login, Reset Password and Registration Page */
#widgetContainer
  > div
  > div
  > div.reactSingularKey_CC_main_generic.styles_CC_main_generic__38Quz
  > div
  > div
  > div
  > div
  > div.css-i32tiq.e146bxl90
  > div.css-kf9qml.e146bxl90
  button.css-1cz29sm[type='submit'][data-id='form-submit-button'] {
  background: var(--primary-900, #b60207);
}

/* HCM - MFA SMS Registration OTP-v1 and HCM-Forgot Password v3 */
/* Specific styles for password reset */
form
  > div
  > div:nth-child(1)
  > div
  > div
  > div
  > div
  > span
  > div
  > div
  > h1
  > span.eifd86o0.css-ayjhr2
  > span:nth-child(2)
  > span {
  font-family: Inter, Arial, sans-serif !important;
  font-style: normal;
  font-weight: 600;
  font-size: 1.45625rem !important;
  line-height: normal;
}

/* Specific styles for verification code */
form
  > div
  > div:nth-child(1)
  > div
  > div
  > div
  > div
  > span
  > div
  > div
  > h4
  > span.eifd86o0.css-11agnqi
  > span:nth-child(2)
  > span {
  font-family: Inter, Arial, sans-serif !important;
  font-style: normal;
  font-weight: 600;
  font-size: 1.45625rem !important;
  line-height: normal;
}

/* Authenticator verification code */
form
  > div
  > div:nth-child(1)
  > div
  > div
  > div
  > div
  > span.eifd86o0.css-5zb8ap
  > div
  > div
  > div
  > span:nth-child(2) {
   {
    font-family: Inter, Arial, sans-serif !important;
    font-style: normal;
    font-weight: 600;
    font-size: 1.45625rem !important;
    line-height: normal;
  }
}

h1,
h4,
form > div > div:nth-child(1) > div > div > div > div > span > div > div > div {
  margin: 0.5rem 0 0.5rem !important;
}

/* Specific styles for subheadings */
span.eifd86o0.css-5zb8ap > div > div > div {
  font-family: Inter, Arial, sans-serif !important;
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.125rem;
  color: var(--primatives-black, #000);
}

/* Authenticator verification code */
form
  > div
  > div:nth-child(2)
  > div
  > div
  > div
  > div
  > span.eifd86o0.css-5zb8ap
  > div
  > div
  > div
  > span:nth-child(2)
  > span {
  font-family: Inter, Arial, sans-serif !important;
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.125rem;
  color: var(--primatives-black, #000);
}

/* Specific styles for password reset subtitle */
span.eifd86o0.css-5zb8ap > div > div > div > span:nth-child(2) {
  color: var(--primatives-black, #000) !important;
}

/* Common button styles */
button.css-1cz29sm,
button.css-qeo7au {
  border-radius: 0.25rem;
}

/* Specific styles for the primary button */
button.css-1cz29sm {
  box-shadow: 0px 1px 8px 0px rgba(0, 0, 0, 0.1),
    0px 2px 4px 0px rgba(0, 0, 0, 0.12), 0px 1px 2px 0px rgba(0, 0, 0, 0.16);
}
/* End of HCM - MFA SMS Registration OTP-v1 and HCM-Forgot Password v3*/
